<template>
    <div class="container">
        <Category title="游戏">
            <template v-slot:slotName="res">
                {{ res }}
                <ul>
                    <li v-for="(d,index) in res.games" :key="index">{{ d }}</li>
                </ul>
            </template>
        </Category>
        <Category title="游戏">
            <template v-slot:slotName="{games}">
                <ul>
                    <h4 v-for="(d,index) in games" :key="index">{{ d }}</h4>
                </ul>
            </template>
        </Category>
    </div>
</template>

<script>
import Category from "@/components/Category.vue";

export default {
    name: 'App',
    components: {Category},
}
</script>

<style scoped>
.container {
    display: flex;
    justify-content: space-around;
}

video {
    width: 100%;
}

img {
    width: 100%;
}
</style>
